<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>发布订单</title>
<%@ include file="../common/link.jsp" %>
<%@ include file="../common/script.jsp" %>
<script type="text/javascript">
$(window).load(function(){
	$('#demo-side-bar').removeAttr('style');
});
</script>
<style type="text/css">
.demobar{display:none;}
#demo-side-bar{top:53px!important;left:90%!important;display:block!important;}
</style>
<%@ include file="../common/header.jsp" %>
</head>
<body>

<!-- START CONTENT -->
    <section class="container clearfix"> <!-- Page Title --> <header
	class="container page_info clearfix">

<h1 class="regular brown bottom_line">发布订单</h1>

<div class="clear"></div>
</header> <!-- /Page Title -->

<form class="form-horizontal" action="${pageContext.request.contextPath}/order/newOrder" method="post">
	<div class="col-md-6">
		<table class="table table-hover table-bordered">
			<tbody>
				<tr class="active">
					<th class="text-center"><h4>取货码</h4></th>
					<td><input type="text" name="emgId"></td>
				</tr>
				<tr class="info">
					<th class="text-center"><h4>送达地址</h4></th>
					<td><input type="text" name="hoStplace"></td>
				</tr>

				<tr>
					<th class="text-center"><h4>取件地址</h4></th>
					<td><input type="text" name="hoPlace"></td>
				</tr>
				<tr class="warning">
					<th class="text-center"><h4>报酬</h4></th>
					<td><input type="text" name="hoPrice"></td>
				</tr>
				<tr class="warning">
					<th class="text-center"><h4>快递单号</h4></th>
					<td><input type="text" name="expId"></td>
				</tr>
				<tr class="warning">
					<th class="text-center" name="hoReamrk"><h4>备注</h4></th>
					<td><textarea name="hoRemark" id="message" cols="70" rows="6"></textarea></td>
				</tr>
			</tbody>
		</table>
		<div align="center">
		    <input type="hidden" name="hoTime" id="today" />
			<button type="submit" class="btn btn-primary">发布</button>
		</div>
	</div>
</form>
<script type="text/javascript">
        window.onload = function() {
            var show = document.getElementById("show");
            setInterval(function() {
                var time = new Date();
                // 程序计时的月从0开始取值后+1
                var m = time.getMonth() + 1;
                var t = time.getFullYear() + "-" + m + "-"
                    + time.getDate() + " " + time.getHours() + ":"
                    + time.getMinutes() + ":" + time.getSeconds();
                show.innerHTML = t;
            }, 1000);
        };
    </script>
    <script type="text/javascript">
     function today(){
    var today=new Date();
    var h=today.getFullYear();
    var m=today.getMonth()+1;
    var d=today.getDate();
    return h+"-"+m+"-"+d+" " + today.getHours() + ":"
    + today.getMinutes() + ":" + today.getSeconds();
}
 
document.getElementById("today").value = today();
</script>
<div class="clear padding20"></div>
<div class="clear"></div>
</section>
    <!-- END CONTENT -->
<%@ include file="../common/footer.jsp" %>    
</body>
</html>